package com.gxa.log.controller;

import com.gxa.log.entity.ExcLog;
import com.gxa.log.service.ExcService;
import org.springframework.web.bind.annotation.*;

import javax.annotation.Resource;

/**
 * 异常日志表(Exc)表控制层
 *
 * @author makejava
 * @since 2021-05-13 14:31:57
 */
@RestController
@RequestMapping("exc")
public class ExcController {
    /**
     * 服务对象
     */
    @Resource
    private ExcService excService;

    /**
     * 通过主键查询单条数据
     *
     * @param id 主键
     * @return 单条数据
     */
    @GetMapping("selectOne")
    public ExcLog selectOne(Integer id) {
        return this.excService.queryById(id);
    }

}
